import request from '@/utils/request'

export function getSlide(query) {
  return request({
    url: '/slide/index',
    method: 'get',
    params: query
  })
}

export function addSlide(query) {
  return request({
    url: '/slide/save',
    method: 'post',
    params: query
  })
}

export function updateSlide(query) {
  return request({
    url: `/slide/edit`,
    method: 'post',
    params: query
  })
}

export function deleteSlide(query) {
  return request({
    url: `/slide/delete`,
    method: 'post',
    params: query
  })
}
